#ifndef __WORKER__
#define __WORKER__
#include "ds.h"
#include "path.h"
typedef struct tidArr_s {
    pthread_t * arr;
    int workerNum;
} tidArr_t;


int whetherLogin(int netfd,char*ppath);
int removeFile(cmd_t* pcmd,int netfd,char* ppath);
int removeDir(cmd_t* pcmd,int netfd,char* ppath);
int makeDir(pathStack_t * p,cmd_t* pcmd,char* ppath);
int tidArrInit(tidArr_t * ptidArr, int workerNum);
int parsingCommand(int netfd,pathStack_t* ppathStack,char* path);
int isFileExite(char* path,int netfd);//判断文件夹是否在目录中，若不存在则向服务端返回消息
void *threadFunc(void *arg);
#endif
